package com.smarthospital.dao.mapper;

import com.smarthospital.entity.pojo.MedicalCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MedicalCardMapper {

    int insertSelective(@Param("pojo") MedicalCard pojo);


    int update(@Param("pojo") MedicalCard pojo);

    List<MedicalCard>  queryByUserId(@Param("userId")Long userId);

    MedicalCard queryByUserIdAndHos(@Param("userId")Long userId, @Param("hospitalCode")String hospitalCode);
}
